package com.yuan.consumer.service.impl;

import com.yuan.common.entity.UserAddress;
import com.yuan.common.service.OrderService;
import com.yuan.common.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @DubboReference
    UserService userService;
    /**
     * 初始化订单
     *
     * @param userId
     * @return
     */
    @Override
    public List<UserAddress> initOrder(String userId) {
        return userService.getUserAddressList(userId);
    }
}
